/* OpenStereo Library - A library to support the development of real time stereoscopic applications.
 * Copyright (C) 2007  Pedro Leite.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#include <stdlib.h>

#include <SL/sl.h>
#include "sl_global_variables.h"

SL_API SLCamera SL_API_ENTRY slCreateCamera(void) {
	SLCamera camera = (SLCamera) calloc(1, sizeof(struct _SLCamera));
	if (camera != 0) {
		// TODO initialize members
	} else {
		error = SL_CANNOT_CREATE_CAMERA;
	}
	return camera;
}

SL_API void SL_API_ENTRY slDestroyCamera(SLCamera camera) {
	if (camera)
		free(camera);
}
